Skip to content

fix: Handle empty message content for suggestion threads #1265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

billpapat
Copy link

@billpapat billpapat commented Jun 28, 2025

Ensures a fallback thread title is provided when the original message content is empty. The thread title will now default to the message author's nickname in such cases, preventing empty or uninformative thread titles. Closes #1198

image

@billpapat billpapat requested a review from a team as a code owner June 28, 2025 15:24
@CLAassistant
Copy link

CLAassistant commented Jun 28, 2025

CLA assistant check
All committers have signed the CLA.

billpapat and others added 2 commits June 28, 2025 19:10
Ensures a fallback thread title is provided when the original message content is empty.
The thread title will now default to the message author's name in such cases,
preventing empty or uninformative thread titles.

Co-authored-by: billpapat <50835814+billpapat@users.noreply.github.com>
Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com>
Mentored-by: Chris Sdogkos <work@chris-sdogkos.com>
CI/CD is failing without this commit.

Co-authored-by: billpapat <50835814+billpapat@users.noreply.github.com>
Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com>
Mentored-by: Chris Sdogkos <work@chris-sdogkos.com>
Copy link
Member

@christolis christolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ what @Zabuzard suggested. We should prioritize code readability.

1) Created channels without title will default to "username's suggestions"
2) Change String threadTitle to final
3) ThreadTitle logic implemented in a helper method

Co-authored-by: Ethan McCue <5004262+bowbahdoe@users.noreply.github.com>
Addresses code review by @christolis.

Co-authorized-by: Chris Sdogkos <work@chris-sdogkos.com>
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
Signed-off-by: billpapat <50835814+billpapat@users.noreply.github.com>
@billpapat billpapat requested review from christolis and Zabuzard June 29, 2025 19:41
@billpapat billpapat requested a review from Zabuzard June 30, 2025 14:19
@billpapat billpapat requested a review from Zabuzard June 30, 2025 20:11
@Taz03 Taz03 changed the title fix: Handle empty message content for thread titles fix: Handle empty message content for suggestion threads Jul 1, 2025
@Zabuzard Zabuzard added bug Something isn't working priority: normal labels Jul 1, 2025
@billpapat billpapat requested a review from Taz03 July 1, 2025 15:24
Copy link
Member

@Zabuzard Zabuzard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could u add some screenshots to the PR please that showcase/demo the feature in practice? its always difficult to review these things when u cant see how it actually looks in practice. often one also spots improvement opportunities that way 🙂

code-wise everything is fine by me now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server suggestion setup fails for a message without text
5 participants